package cn.hhu.web;

import javax.annotation.Resource;

import org.junit.Test;
import org.springframework.stereotype.Controller;

import cn.hhu.domain.User;
import cn.hhu.service.UserService;

@Controller
public class UserController {

	/**
	 * @param args
	 */
	@Resource
	private UserService userService;
	@Test
	public void test() {

		User user=new User();
		user.setUserid("1512330");
		user.setUsername("kkkkl");
		user.setPassword("admin");
		userService.add(user);
	}

}
